package Hot100.Skill_question;

import java.util.HashMap;
import java.util.Map;

public class singleNumber {
    public static void main(String[] args) {

    }
    public int singleNumber(int[] nums) {
        int single = 0;
        for (int i = 0; i < nums.length; i++) {
            single ^= nums[i];
        }
        return single;
    }
}
